<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>Личный товар</title>
    <link rel="icon" href="/image/logo2.jpg" type="image/x-icon">
    <link rel="shortcut icon" href="/image/logo2.jpg" type="image/x-icon">
  <link rel="stylesheet" th:href="@{/main.css}">
    <meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>

<div th:replace="~{layouts/header :: header}"></div>

<main class="container">

    <img class="full_order" id="full_order_img" th:src="${order.img}" alt="Извините, фото не найдено">

    <div id="edit-btn-center">
      <form class="edit-btn" th:action="@{'/controlpanel/orderprsonal/' + ${order.id} + '/delete'}" method="post">
        <button>Удалить</button>
      </form>

      <form class="edit-btn" th:action="@{'/controlpanel/orderpersonal/' + ${order.id} + '/update'}">
        <button>Редактировать</button>
      </form>
    </div>

    <h2 class="full_order" th:text="${order.name}"/>
    <h4 class="full_order" th:text="'Закупочная цена: ' + ${order.purchase_price}"/>
    <h4 class="full_order" th:text="'Годен до: ' + ${order.expiration_date}"/>
    <h4 class="full_order" th:text="'Производитель: ' + ${order.manufacturer}"/>
    <h4 class="full_order" th:text="'В наличие: ' + ${order.in_stock}"/>
    <h4 class="full_order" th:text="'Код товара: ' + ${order.code}"/>

</main>

<div th:replace="~{layouts/footer :: footer}"></div>

</body>
</html>